﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IntegradorMod
{
    public partial class Cad_Representante : Form
    {
        public Cad_Representante()
        {
            InitializeComponent();
        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {

        }

        private void button5_Click(object sender, EventArgs e)
        {
            Representante objrepres = new Representante();
            objrepres.nome_ = txtrepres.Text;
            objrepres.telefone_ = txttel.Text;
            objrepres.email_ = txtemail.Text;

            objrepres.Inserir(objrepres);
            MessageBox.Show("Representante Cadastrado!");
        }
    }
}
